﻿using System;
using System.Collections.Generic;

using System.ComponentModel.DataAnnotations;

namespace AL.Entity {


    /// <summary>
    /// HH: 短消息 实体类
    /// </summary>
    public class Message {

        /// <summary>
        /// HH: 短消息 - 标识
        /// </summary>
        [Key]
        [Required]
        public int ID { get; set; }

        /// <summary>
        /// HH: 短消息 - 创建日期
        /// </summary>
        [Required]
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// HH: 短消息 - 标题
        /// </summary>
        [Required]
        [MaxLength(100)]
        public string Title { get; set; }


        /// <summary>
        /// HH: 短消息 - 内容
        /// </summary>
        [MaxLength(1000)]
        public string Content { get; set; }


        /// <summary>
        /// HH: 短消息 - 发送人
        /// </summary>
        [MaxLength(50)]
        public string SendUserName { get; set; }

        /// <summary>
        /// HH: 短消息 - 接收人
        /// </summary>
        [MaxLength(50)]
        public string ReceiveUserName { get; set; }


        /// <summary>
        /// HH: 短消息 - 是否已读
        /// </summary>
        public bool IsRead { get; set; }

        /// <summary>
        /// HH: 短消息 - 是否被发送人删除
        /// </summary>
        public bool IsDeletedBySender { get; set; }

        /// <summary>
        /// HH: 短消息 - 是否被接收人删除
        /// </summary>
        public bool IsDeletedByReceiiver { get; set; }

    }
}
